package com.mingqijia.gassafety.webserver.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * @author wanghai
 * @since 2022-03-11
 */

@Data
@ApiModel(value = "报警记录")
public class WarningRecordInfoResponse {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "气体浓度")
    private String concentration;

    @ApiModelProperty(value = "报警类型 1低报 2高报")
    private Integer type;

    @ApiModelProperty(value = "通知开始时间 ")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "发送类型： 1短信 2本地消息中心")
    private Integer sendType;

    @ApiModelProperty(value = "通知对象的基本信息")
    private String notifyObjInfo;

    @ApiModelProperty(value = "通知对象类型： -1 本地消息 0客户 1 企业员工")
    private Integer notifyObjType;


    @ApiModelProperty(value = "当前数据推送的手机号")
    private String pushPhone;

    @ApiModelProperty(value = "级别 1-10，数字越大级别越高,默认0")
    private Integer objLevel;

    @ApiModelProperty(value = "发送结果：0发送成功，发送失败")
    private Integer sendResult;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "记录内容")
    private String content;

    @ApiModelProperty(value = "树形结构")
    private List<WarningRecordInfoResponse> children;

}
